package com.liang.volatiledemo;

public class Demo {
    public static void main(String[] args) {
        Girl girl = new Girl();
        girl.setName("小路同学");
        girl.start();

        Boy boy = new Boy();
        boy.setName("小皮同学");
        boy.start();

    }
}
